From: Carlos Garnacho Date: Tue, 27 Nov 2018 13:52:06 +0000 (+0100) Subject: tweener: Use StSettings instead of GtkSettings X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~897^2^2~74 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=91d73d65c3c0b2c61e8e30aed70e3d1c4ce2da8c;p=gnome-shell.git tweener: Use StSettings instead of GtkSettings Cut a middle man by listening to dconf settings directly, and stop relying on XSettings for it. https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/317 --- diff --git a/js/ui/tweener.js b/js/ui/tweener.js index 6c9869c47..80e5838ad 100644 --- a/js/ui/tweener.js +++ b/js/ui/tweener.js @@ -2,7 +2,6 @@ const Clutter = imports.gi.Clutter; const GLib = imports.gi.GLib; -const Gtk = imports.gi.Gtk; const Mainloop = imports.mainloop; const Shell = imports.gi.Shell; const St = imports.gi.St; @@ -52,7 +51,7 @@ function _wrapTweening(target, tweeningParameters) { } } - if (!Gtk.Settings.get_default().gtk_enable_animations) { + if (!St.Settings.get().enable_animations) { tweeningParameters['time'] = 0.000001; tweeningParameters['delay'] = 0.000001; }